package xmsbsys.service.impl;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import xmsbsys.beans.SysUser;
import xmsbsys.dao.SysUserMapper;
import xmsbsys.service.ISysUserService;

@Service("SysUserServiceImpl")
public class SysUserServiceImpl implements ISysUserService {
    @Resource
    public SysUserMapper sysUserMapper;

    public int deleteByPrimaryKey(Integer id) {
        return sysUserMapper.deleteByPrimaryKey(id);
    }

    public int insert(SysUser record) {
        return sysUserMapper.insert(record);
    }

    public int insertSelective(SysUser record) {
        return sysUserMapper.insertSelective(record);
    }

    public SysUser selectByPrimaryKey(Integer id) {
        return sysUserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SysUser record) {
        return sysUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SysUser record) {
        return sysUserMapper.updateByPrimaryKey(record);
    }

    public int getTotalCount() {
        return sysUserMapper.getTotalCount();
    }

    public int getCountByParameterName(String parameterName) {
        return sysUserMapper.getCountByParameterName(parameterName);
    }

    public List<SysUser> selectByPaingAndCondition(Map<String, String> map) {
        return sysUserMapper.selectByPaingAndCondition(map);
    }
}